const { Op } = require("sequelize");
const { Waterlevel } = require("../../models");
const { NotFounError, success, fail } = require("../../utils/response");
// 查询文章列表处理函数
exports.getdata = async (req, res) => {
  try {
    const { count, rows } = await Waterlevel.findAndCountAll();

    success(res, "查询水位表成功!", {
      data: rows,
    });
  } catch (error) {
    fail(res, error);
  }
};
